package org.loong.crypto.common.enums;

import javax.crypto.Cipher;

/**
 * Key type enum.
 */
public enum KeyTypeEnum {

    /**
     * Public key.
     */
    PUBLIC_KEY(Cipher.PUBLIC_KEY),

    /**
     * Private key.
     */
    PRIVATE_KEY(Cipher.PRIVATE_KEY),

    /**
     * Secret key.
     */
    SECRET_KEY(Cipher.SECRET_KEY);

    private final int value;

    /**
     * all args constructor.
     *
     * @param value the value
     */
    KeyTypeEnum(final int value) {
        this.value = value;
    }

    /**
     * Get value.
     *
     * @return value
     */
    public int getValue() {
        return value;
    }
}